#include<iostream>
using namespace std;
#include<vector>
#include<algorithm>
class Solution {
public:
    long long maximumPoints(vector<int>& enemyEnergies, int currentEnergy) {
        long long ener = currentEnergy;
        int minmun = INT_MAX;
        for (auto e : enemyEnergies) {
            ener += e;
            minmun = min(e, minmun);
        }
        if (currentEnergy < minmun)
            return 0;
        ener -= minmun;
        return ener / minmun;
    }
};